﻿using System;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;
using System.Threading;
using System.Collections.Generic;
using SangoBang;


[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
[System.Web.Script.Services.ScriptService]

public class Service : System.Web.Services.WebService
{
    public Service () {

        //Uncomment the following line if using designed components 
        //InitializeComponent(); 
    }
    static EventController m_controller = new EventController();

    [WebMethod]
    public string SendMsg(string msg,string guid)
    {
        return m_controller.OnReceiveMsg(msg, guid);
    }

    [WebMethod]
    public string GetMsg(string guid)
    {
        string message = m_controller.GetMsg(guid);
        return message;
    }
}
